package com.example.calci;

import java.io.ObjectInputStream.GetField;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends Activity {

		Button btnadd,btnsub,btnmul,btndiv;
		TextView tvnum1,tvnum2,tvResult;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        btnadd = (Button) findViewById(R.id.btnadd);
        btnsub = (Button) findViewById(R.id.btnsub);
        btnmul = (Button) findViewById(R.id.btnmul);
        btndiv = (Button) findViewById(R.id.btndiv);
        tvnum1 = (TextView) findViewById(R.id.tvnum1);
        tvnum2 = (TextView) findViewById(R.id.tvnum2);
        
        btnadd.setOnClickListener(new OnClickListener() {
            
            public void onClick(View v) {
                  tvResult.setText(tvnum1.getText() + " + " + tvnum2.getText());
                   
            }
    });
}

    }
    

   

